﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static DXApplicationTangche.原型.TaskDTOS;

namespace DXApplicationTangche.DTO.任务DTO
{
    /// <summary>
    /// 流程DTO
    /// </summary>
    public class ProcessDto
    {
        public String ID { get; set; }
        public String PROCESS_ID { get; set; }

        public Enum样衣子任务 USER_TASK { get; set; }

        public int PROCESS_INDEX { get; set; }

        /// <summary>
        /// 取数据构造函数
        /// </summary>
        /// <param name="dataRow"></param>
        public ProcessDto(DataRow dataRow) {
            this.ID = dataRow["ID"].ToString();
            this.PROCESS_ID = dataRow["PROCESS_ID"].ToString();
            this.USER_TASK = (Enum样衣子任务)Convert.ToInt32(dataRow["USER_TASK"].ToString());
            this.PROCESS_INDEX = Convert.ToInt32(dataRow["PROCESS_INDEX"].ToString());
        }
    }
}
